import 'package:json_annotation/json_annotation.dart';

part 'media_db_result.g.dart';

@JsonSerializable()
class MediaDbResult {
  final String guid;
  final String title;
  final String category;
  final List<String> posters;
  @JsonKey(name: 'view_type')
  final int viewType;

  MediaDbResult(this.guid, this.title, this.category,this.posters, this.viewType);

  factory MediaDbResult.fromJson(Map<String, dynamic> json) =>
      _$MediaDbResultFromJson(json);
}
